package sk.fhi.server.util;

import java.util.ArrayList;
import java.util.List;

import sk.fhi.shared.model.AbstractEntity;

import com.googlecode.objectify.Key;

public class Util {

	public static <E extends AbstractEntity> List<Key<E>> getKeysFromIDs(
			Class<E> entityClass, List<Long> ids) {
		
		List<Key<E>> result = new ArrayList<Key<E>>();
		for (Long id : ids) {
			result.add(new Key<E>(entityClass, id));
		}

		return result;
	}

}
